import React, { Component } from "react";
import PropTypes from "prop-types";

export default class ListHeader extends Component {
    constructor(props) {
        super(props);
    }
    render() {
        const { title, color } = this.props;
        return (
            <div>
                <div className="list-header">
                    <i className={`list-tip list-tip-${color}`}></i>
                    {title}
                </div>
            </div>
        );
    }
}
ListHeader.propTypes = {
    title: PropTypes.string,
    color: PropTypes.string,
};
